<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-statistics-edit" th:object="${statistics}">
<!--        <input id="valueid" name="valueid" th:field="*{valueid}"  type="hidden">-->
        <div class="form-group">
            <label class="col-sm-3 control-label">参数编号：</label>
            <div class="col-sm-8">
                <input id="valueid" name="valueid" th:field="*{valueid}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">参数名称：</label>
            <div class="col-sm-8">
                <input id="valuename" name="valuename" th:field="*{valuename}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">是否有效：</label>
            <div class="col-sm-8">
                <input id="issingleselection" name="issingleselection" th:field="*{issingleselection}" class="form-control" type="text">
            </div>
        </div>
    </form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
    var prefix = ctx + "village/statistics"
    $("#form-statistics-edit").validate({
        rules:{
            xxxx:{
                required:true,
            },
        }
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-statistics-edit').serialize());
        }
    }
</script>
</body>
</html>
